package com.bjesc_b2c.app.appraiset.widget.popupwindow;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.bjesc_b2c.app.appraiset.R;
import com.bjesc_b2c.app.appraiset.widget.BasePopupWindow;

/**
 * Created by lenovo on 2017/2/28.
 */

public class OrderOperationPop extends BasePopupWindow implements View.OnClickListener {
    private TextView turnOrderTv,turnEngagementsTv,addFlowTv;

    public OrderOperationPop(Context context, View.OnClickListener listener) {
        super(context, listener);
    }

    @Override
    protected void initViews() {
        view = inflater.inflate(R.layout.pop_order_operation,null);
        turnOrderTv = (TextView) view.findViewById(R.id.tv_turn_order);
        turnEngagementsTv = (TextView) view.findViewById(R.id.tv_turn_engagements);
        addFlowTv = (TextView) view.findViewById(R.id.tv_add_flow);
        addFlowTv.setOnClickListener(this);
        turnEngagementsTv.setOnClickListener(this);
        turnOrderTv.setOnClickListener(this);
    }

    @Override
    protected int setRootViewId() {
        return 0;
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.tv_turn_order:        //转单

                break;
            case R.id.tv_turn_engagements:  //转约

                break;
            case R.id.tv_add_flow:          //添加跟进

                break;

        }
    }
}
